HTMLify

style.css
Views: 30 | Author: cody
html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  font-size: 62.5%;
}
html * {
  box-sizing: inherit;
}

body {
  background-color: #151515;
  display: grid;
  font-family: sans-serif;
  font-size: 1.6rem;
  min-height: 100vh;
  place-content: center;
  position: relative;
}
body::before {
  background-color: #151515;
  content: "";
  height: 100%;
  left: 0;
  opacity: 0.8;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.buttons {
  position: relative;
  z-index: 1;
}
.buttons--active .buttons__ctas {
  transform: translate(-50%, -50%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(1) {
  transform: translate(-110%, -150%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(2) {
  transform: translate(10%, -150%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(3) {
  transform: translate(65%, -50%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(4) {
  transform: translate(10%, 50%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(5) {
  transform: translate(-110%, 50%) rotate(0deg);
}
.buttons--active .buttons__cta:nth-child(6) {
  transform: translate(-165%, -50%) rotate(0deg);
}
.buttons__toggle {
  appearance: none;
  align-items: center;
  background-color: #9322aa;
  border: 4px solid #19182B;
  border-radius: 50%;
  box-shadow: inset 0 -8px 0 #74168b;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-size: 0;
  height: 8rem;
  justify-content: center;
  text-decoration: none;
  text-shadow: 0 2px 0 #74168b;
  width: 8rem;
  position: relative;
  z-index: 1;
}
.buttons__toggle:hover {
  text-shadow: 0 2px 0 #74168b, 0 0 4px rgba(255, 255, 255, 0.5);
}
.buttons__toggle:focus, .buttons__toggle--active {
  background-color: #74168b;
  box-shadow: inset 0 8px 0 #670b6f;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.buttons__toggle i {
  font-size: 3.2rem;
}
.buttons__ctas {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  transform-origin: center;
  transition: transform 0.75s ease;
  z-index: 0;
}
.buttons__cta {
  appearance: none;
  align-items: center;
  background-color: #9322aa;
  border: 4px solid #19182B;
  border-radius: 50%;
  box-shadow: inset 0 -8px 0 #74168b;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-size: 0;
  height: 8rem;
  justify-content: center;
  text-decoration: none;
  text-shadow: 0 2px 0 #74168b;
  width: 8rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.buttons__cta:hover {
  text-shadow: 0 2px 0 #74168b, 0 0 4px rgba(255, 255, 255, 0.5);
}
.buttons__cta:focus, .buttons__cta--active {
  background-color: #74168b;
  box-shadow: inset 0 8px 0 #670b6f;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.buttons__cta i {
  font-size: 3.2rem;
}
.buttons__cta:nth-child(1) {
  transition-delay: calc(1 * 0.075s);
  z-index: calc(6 - 1);
}
.buttons__cta:nth-child(2) {
  transition-delay: calc(2 * 0.075s);
  z-index: calc(6 - 2);
}
.buttons__cta:nth-child(3) {
  transition-delay: calc(3 * 0.075s);
  z-index: calc(6 - 3);
}
.buttons__cta:nth-child(4) {
  transition-delay: calc(4 * 0.075s);
  z-index: calc(6 - 4);
}
.buttons__cta:nth-child(5) {
  transition-delay: calc(5 * 0.075s);
  z-index: calc(6 - 5);
}
.buttons__cta:nth-child(6) {
  transition-delay: calc(6 * 0.075s);
  z-index: calc(6 - 6);
}

/*# sourceMappingURL=style.css.map */

Comments